package com.iphanta.community.common;

import com.iphanta.community.common.entity.DataResult;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 2/17/22 6:42 PM
 */
public class BusinessException extends RuntimeException {
    public BusinessException() {
    }

    private DataResult result;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, DataResult result) {
        super(message);
        this.result = result;
    }

    public DataResult result() {
        return this.result;
    }
}
